GET /tasks/{taskId}
Description
Gets data for a specified taskThe route handles the HTTP GET request made to the /tasks/{taskId} path.
Parameters
The next path parameters are sent in the request line:
- id(number) - (required) the id of a task for which data is requested
Payload
No payload is required.
Response
The server returns data for the requested task.
Example:
[
   { 
    "id": 2,
    "text": "[2] Mini p task 2.1",
    "start": "2024-06-14 00:00:00",
    "end": "2024-06-16 00:00:00",
    "duration": 0, "progress": 0,
    "parent": 10,
    "type": "task",
    "lazy": false },
   {
    "id": 6,
    "text": "[6] Mini p task 2.2",
    "start": "2024-06-15 00:00:00",
    "end": "2024-06-19 00:00:00",
    "duration": 0,
    "progress": 0,
    "parent": 10,
    "type": "task",
    "lazy": false 
   }
]
The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).
Related articles: